//StudentService.java
package org.example.demo3.service;

import org.example.demo3.model.Student;

import java.util.List;

public interface StudentService {
    //返回学生列表
    List<Student> findAll();
    //删除学生
    int remove(int id);
    //添加学生
    int add(Student student);
    //查询对应id的学生
    Student findOneById(int id);
    //修改学生
    int edit(Student student);
    //分页查询
    List<Student> findByPage(int currentPage, int pageSize);
    //登录验证
    boolean login(String username, String password);
}

